package breadfactory.user.dao;

import org.springframework.orm.ibatis.SqlMapClientTemplate;

import breadfactory.user.dto.UserDTO;

public class UserDAO {
	
	private SqlMapClientTemplate client;
	
	public void setSqlMapClientTemplate(SqlMapClientTemplate client) {
		this.client = client;		
	}
	
	public UserDTO getSelectBoardByIdDAO(String userId) {
				
		UserDTO udto = (UserDTO) client.queryForObject("board.selectUserById", userId);
		
		return udto;
	}

}
